<?php
function echoRes($code, $data, $msg){
    header('Content-Type: application/json');
	$jsonData = json_encode(array(
		'code' => $code,
		'data' => $data,
		'msg' => $msg
	));
	echo $jsonData;
}



?>